//
//  CoreConfig.h
//  Dingdong
//
//  Created by 程强 on 16/11/11.
//  Copyright © 2016年 程强. All rights reserved.
//

#ifndef CoreConfig_h
#define CoreConfig_h

#define DESKey @"12345678"

#define AppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
#define NowTimeStamp [ToolKit nowTimeStamp]
#define AppType @"ios"
#define AccessToken [SystemConfig shareInstance].token

#define ServerUrl @"http://www.dingdongshop.net/"

#define CheckLogin(vc)     if (![SystemConfig shareInstance].isLogin) { \
DDLoginViewController *loginVC = StoryBoardViewController(@"Login", @"LoginNavi"); \
[vc presentViewController:loginVC animated:YES completion:nil]; return;}

#define InterfaceResult(code) [DDDevelopErrorTip showMessageHUD:code delayHide:0.5]

#define MyUser  DDUserObj *myUser = [SystemConfig shareInstance].user

#define kPageSize (10)

#define JPushAppKey @"e8910da06c0dea88581972a2"

#endif /* CoreConfig_h */
